package com.cskaoyan.demo2.service;

import com.cskaoyan.demo2.bean.MarketAdmin;
import com.cskaoyan.demo2.mapper.MarketAdminMapper;
import com.cskaoyan.demo2.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

/**
 * @Description：
 * @Author：BLUEBLANK
 * @Date：2024/4/8 19:39
 */


public class AdminService {





    public MarketAdmin selectByUserNameAndPassword(String username, String password) {
        SqlSession sqlSession = MybatisUtil.getSqlSession();
        MarketAdminMapper mapper = sqlSession.getMapper(MarketAdminMapper.class);
        MarketAdmin marketAdmin = mapper.selectByUsernameAndPassword(username,password);
        return marketAdmin;
    }
}
